/*
 * $Id: AbstractTaskFtRecordId.java,v 1.4 2009/07/24 18:27:41 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

package com.ge.healthcare.autosc.common.database.pojo;

/**
 * AbstractActTaskFtDetailsId entity provides the base persistence definition of
 * the ActTaskFtDetailsId entity. @author MyEclipse Persistence Tools
 */

public class AbstractTaskFtRecordId implements
		java.io.Serializable {

	// Fields

	/**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 267835568433278436L;
	private Long taskId;
	private Long ftId;

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof AbstractTaskFtRecordId))
			return false;
		AbstractTaskFtRecordId castOther = (AbstractTaskFtRecordId) other;

		return ((this.getTaskId() == castOther.getTaskId()) || (this
				.getTaskId() != null
				&& castOther.getTaskId() != null && this.getTaskId().equals(
				castOther.getTaskId())))
				&& ((this.getFtId() == castOther.getFtId()) || (this.getFtId() != null
						&& castOther.getFtId() != null && this.getFtId()
						.equals(castOther.getFtId())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getTaskId() == null ? 0 : this.getTaskId().hashCode());
		result = 37 * result
				+ (getFtId() == null ? 0 : this.getFtId().hashCode());
		return result;
	}

	/**
	 * @return the taskId
	 */
	public Long getTaskId() {
		return taskId;
	}

	/**
	 * @param taskId
	 *            the taskId to set
	 */
	public void setTaskId(Long taskId) {
		this.taskId = taskId;
	}

	/**
	 * @return the ftId
	 */
	public Long getFtId() {
		return ftId;
	}

	/**
	 * @param ftId
	 *            the ftId to set
	 */
	public void setFtId(Long ftId) {
		this.ftId = ftId;
	}

}
